package com.aiti.lulian.mapper;

import com.aiti.base.core.base.mapper.SuperMapper;
import com.aiti.lulian.entity.CardEnterpriseUserData;
import com.aiti.lulian.vo.CardEnterpriseUserDataAndCardHolderVo;
import com.aiti.lulian.vo.CardEnterpriseUserDataByBaseIdVo;
import com.aiti.lulian.vo.CardEnterpriseUserDataVo;
import com.aiti.lulian.vo.CardHolderVo;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.mapstruct.Mapper;

import java.util.List;

@Mapper
public interface CardEnterpriseUserDataMapper extends SuperMapper<CardEnterpriseUserData> {

    List<CardEnterpriseUserData> userDataCountList(Page page, @Param("vo") CardEnterpriseUserDataVo cardEnterpriseUserData);

//    CardEnterpriseUserData selectDetailsByCondition(@Param("userId") String userId);

    CardEnterpriseUserDataAndCardHolderVo findUserCardandCardHolder(@Param("userId") String userId);

    CardEnterpriseUserDataByBaseIdVo findUserCardInfoByBaseId(@Param("userId") String userId);

    CardEnterpriseUserData findUserCardInfoByPhoneBaseIdLogon(@Param("baseIdLogon") String baseIdLogon);

    CardEnterpriseUserData getById(String userId);

    CardEnterpriseUserData getBaseIdByCardHolderUserId(String cardHolderUserId);
}
